package com.liang.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liang.common.utils.PageUtils;
import com.liang.gulimall.member.entity.MemberEntity;
import com.liang.gulimall.member.exception.PhoneExistException;
import com.liang.gulimall.member.exception.UsernameExistException;
import com.liang.gulimall.member.vo.SocialUser;
import com.liang.gulimall.member.vo.UserLoginVo;
import com.liang.gulimall.member.vo.UserRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author sdl
 * @email 675184354@qq.com
 * @date 2020-05-24 15:57:02
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(UserRegisterVo vo);
    void checkPhoneUnique(String phone)throws PhoneExistException;
    void checkUsernameUnique(String username)throws UsernameExistException;


    MemberEntity login(UserLoginVo vo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

